
<?php


include("config.php");
include("common/user_client.php");
include("common/common_function.php");

//有token，处理从用户中心跳转的带token的链接
@$tokenIndex = $_GET["identify"];
if($tokenIndex){
	$user = new UserClient();
	$user->cookie_write($tokenIndex);
	header("Location:".SERVER_HOST);
}
else{
	if(checkIsLogin()){
		header("Location:".SERVER_HOST);
	}
	else{
		header("Location:".USER_HOME);
	}
}